#include "comm.hpp"

using namespace std;

int main()
{
    int shmid = GetShm();

    if(shmid < 0)
    {
        return 1;
    }

    char* shmaddr = (char*)shmat(shmid,nullptr,0);
    while(true)
    {
        cout << "请输入 >";
        fgets(shmaddr,4096,stdin);
    }
    shmdt(shmaddr);

    return 0;
}